throw new InvalidAppError();
this._notifications = {};
+ this._notificationPending = false;
this.parent(this._app.get_name());
},
},
addNotification: function(notificationId, notificationParams, showBanner) {
+ this._notificationPending = true;
+
if (this._notifications[notificationId])
this._notifications[notificationId].destroy();
this.notify(notification);
else
this.pushNotification(notification);
+
+ this._notificationPending = false;
+ },
+
+ destroy: function(reason) {
+ if (this._notificationPending)
+ return;
+ this.parent(reason);
},
removeNotification: function(notificationId) {